﻿using System;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using AMatysiak.Methods;
using System.Collections.Generic;

namespace AMatysiakTest.Methods
{
    [TestClass]
    public class ToListTest
    {
        private enum Colors
        {
            BLACK,
            BLUE,
            WHITE
        }

        [TestMethod]
        public void toList()
        {
            string[] colors = new string[] 
            {
                "BLACK",
                "BLUE",
                "WHITE"
            };
            
            IEnumerable<string> list = EnumExtensions.EnumToList<Colors>();

            foreach(string s in list)
                Assert.IsTrue(colors.Contains(s));
        }
    }
}
